function ret=distance_to_net(v,G)
 V=u_rot(v);
 dv=[];
 for n =1:length(G)
  g=G{n};
  dv(end+1)=distance(V,g);
 endfor
 ret=min(dv);
endfunction
